//
//  UILabel+Adapter.m
//  JGRider
//
//  Created by faqiang feng on 2018/1/30.
//  Copyright © 2018年 ffq. All rights reserved.
//

#import "UILabel+Adapter.h"
#import <objc/runtime.h>
@implementation UILabel (Adapter)
+(void)load{
    Method method1=class_getInstanceMethod([self class], @selector(initWithCoder:));
    Method method2=class_getInstanceMethod([self class], @selector(adapterInitWithCoder:));
    
    method_exchangeImplementations(method1, method2);
}

-(instancetype)adapterInitWithCoder:(NSCoder*)aDecoder{
    [self adapterInitWithCoder:aDecoder];
    if(self){
        if([UIScreen mainScreen].bounds.size.width==414){
            self.font=[UIFont systemFontOfSize:self.font.pointSize+2];
        }
        
    }
    return self;
    
}

@end
